# ~*~ coding: utf-8 ~*~
import json
import os
import importlib,sys
importlib.reload(sys)
#import urllib
import requests
from Log import logger,logger_task

def SendMs(url,msg):

	textmod={"msgtype": "text", "text": {"content": '%s'%msg}}
	header_dict = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko',"Content-Type": "application/json"}
	r = requests.post(url=url, headers=header_dict, json=textmod)
	logger_task.info(r.content.decode())



